// 引入cookie的库
import Cookies from 'js-cookie'

const TokenKey = 'Hrsass_token'
const TOkenTimeKey = 'Token_time'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setTokenTime() {
  Cookies.set(TOkenTimeKey, Date.now())
}

export function getTokenTime() {
  return Cookies.get(TOkenTimeKey)
}
